﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LanguageImportExport.aspx.cs"
    Inherits="MLM.AdminCP.Pages.LanguageImportExport" meta:resourcekey="PageResource1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Language Export & Import</title>
    <style type="text/css">
        *
        {
            margin: 0;
            padding: 0;
        }
        body
        {
            font-family: Tahoma;
            font-size: 13px;
            background: #f1f1f1;
        }
        #Wrapper
        {
            width: 1000px;
            margin: 20px auto;
            background: #fff;
            padding: 10px;
            border-radius: 5px;
            box-shadow: 0 0 1px #ccc;
        }
        table td
        {
            vertical-align: top;
        }
        .TopHeaderTitle
        {
            color: #333333;
            margin-top: 10px;
            text-align: center;
            text-shadow: 1px 1px 1px #CCCCCC;
            text-transform: uppercase;
        }
        .TopHeaderTitle a
        {
            font-size: 13px;
            text-decoration: none;
            color: #336699;
            margin-left: 10px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <h1 class="TopHeaderTitle">
        <asp:Label runat="server" ID="lblanguage" Text="Language Export/Import Tool" 
            meta:resourcekey="lblanguageResource1"></asp:Label>
        <a href="/AdminCP/Pages/LanguageTranslatorTool.aspx">
            <asp:Label runat="server" ID="lbtranslator" Text="Translator tool" 
            meta:resourcekey="lbtranslatorResource1"></asp:Label></a>
        <a href="/AdminCP/Pages/Default.aspx">
            <asp:Label runat="server" ID="lbControlPanel" Text="Control Panel" 
            meta:resourcekey="lbControlPanelResource1"></asp:Label>
        </a>
    </h1>
    <div id="Wrapper">
        <div class="EditorPanel" style="clear: both; width: auto;">
            <table>
                <tr>
                    <td colspan="3">
                        <asp:Label runat="server" ID="MessageLbl" ForeColor="Red" 
                            meta:resourcekey="MessageLblResource1"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lbSelectFile" Text="Select File:" 
                            meta:resourcekey="lbSelectFileResource1"></asp:Label>
                        <br />
                        <asp:ListBox ID="lstResX" runat="server" Height="150px" Width="350px" meta:resourcekey="lstResXResource1"
                            AutoPostBack="True" />
                    </td>
                    <td>
                        <asp:Literal ID="Literal1" runat="server" Text="Select Language:" meta:resourcekey="Literal1Resource1" /><br />
                        <asp:DropDownList ID="ddLanguage" runat="server" meta:resourcekey="ddLanguageResource1"
                            CssClass="DDLanguage" AutoPostBack="True" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="Label1" Text="Select action:" 
                            meta:resourcekey="Label1Resource1"></asp:Label><br />
                        <asp:Button Text="Export" runat="server" ID="ExportBtn" 
                            CausesValidation="False" meta:resourcekey="ExportBtnResource1" /><br />
                        <asp:FileUpload runat="server" ID="ImportFile" 
                            meta:resourcekey="ImportFileResource1" />
                        <asp:Button runat="server" Text="Import" ID="ImportBtn" 
                            meta:resourcekey="ImportBtnResource1" /><br />
                        <asp:RegularExpressionValidator ID="ValidateSelectFile" ControlToValidate="ImportFile"
                            ValidationExpression="^.*\.(resx|RESX)$" runat="server" ErrorMessage="Please select another resource file!"
                            ForeColor="Red" meta:resourcekey="ValidateSelectFileResource1" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
